//
//  SCBaseNavigationViewController.m
//  Assembly
//
//  Created by 葛悦彣 on 2023/11/9.
//

#import "SCBaseNavigationViewController.h"

@interface SCBaseNavigationViewController ()

@end

@implementation SCBaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    ///禁止侧滑
//    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    // Do any additional setup after loading the view.
}


- (BOOL)shouldAutorotate {
    return self.topViewController.shouldAutorotate;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return self.topViewController.supportedInterfaceOrientations;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    return self.topViewController.preferredInterfaceOrientationForPresentation;
}

- (nullable UIViewController *)childViewControllerForStatusBarStyle {
    return self.topViewController;
}

- (nullable UIViewController *)childViewControllerForStatusBarHidden {
    return self.topViewController;
}

@end
